home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource5
/
352_01
/
vlistpop.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-27
|
373b
|
19 lines
// VLISTPOP.CPP
// code for Vlist::pop(), removes top item from vlist stack.
#include "dblib.h"
void Vlist::pop ( void )
{
void **vl = list;
register int vn =n;
if ( vn>0 )
{
n = --vn;
free ( vl[vn] );
vl [vn] = NULL;
}
return; /* Vlist::pop() */
}
//----------------- end VLISTPOP.CPP -------------------